package com.atguigu.daijia.customer.service;

import com.atguigu.daijia.model.entity.customer.CustomerInfo;
import com.atguigu.daijia.model.form.customer.UpdateWxPhoneForm;
import com.atguigu.daijia.model.vo.customer.CustomerLoginVo;
import com.baomidou.mybatisplus.extension.service.IService;
import me.chanjar.weixin.common.error.WxErrorException;

public interface CustomerInfoService extends IService<CustomerInfo> {

    /*
    微信登录接口
    * */
    Long login(String code) throws WxErrorException;

    /*
    * 获取用户登录信息
    * */
    CustomerLoginVo getCustomerInfo(Long customerId);

    /*
    * 更新用户手机
    * */
    Boolean updateWxPhoneNumber(UpdateWxPhoneForm updateWxPhoneForm) throws WxErrorException;

    /*
     * 获取客户OpenId
     * */
    String getCutomerOpenId(Long customerId);
}
